import request from '@/utils/request'


export default {
    getBuildListPage(current,limit,buildQuery){
        return request({
            url: `/proservice/pro-build/pageBuildCondition/${current}/${limit}`,
            method: 'post',
            data:buildQuery
        })
    },
    deleteBuildById(id){
        return request({
            url: `/proservice/pro-build/${id}`,
            method: 'delete'
        })
    },
    addBuild(proBuild){
        return request({
            url: `/proservice/pro-build/addBuild`,
            method: 'post',
            data: proBuild
        })
    },
    getBuildById(id){
        return request({
            url: `/proservice/pro-build/getBuild/${id}`,
            method: 'get'
        })
    },
    updateBuildInfo(proBuild){
        return request({
            url: `/proservice/pro-build/updateBuild`,
            method: 'post',
            data: proBuild
        })
    }
}

